<?php
return array(
    'module' => array(
            'template'  => 'Site1Bundle:Module:news:twig',
            'table'     => 'news',
            'parents'   => array(
              'parent1', 'parent2', 'parent3'  
            ),
            'routing'   => array(
                'index'  => array('pattern' => ''),
                'create' => array('pattern' => '/create'),
                'delete' => array(
                    'pattern' => '/delete/:id',
                ),
                'hide'   => array(
                    'pattern' => '/hide/:id',
                ),
                'show'   => array(
                    'pattern' => '/show/:id',
                ),
                'edit' => array(
                    'pattern' => '/edit/:id',
                )
            ),
            'panels'    => array(
                'top' => array
                (
                    'create' => array(
                        'plugin' => 'button',
                        'config' => array(
                            'title' => 'Создать',
                            'type' => 'link',
                            'url' => ':route(\'module_create\')',
                        )
                    )
                )
                    ),
            'plugins'   =>  array(
                    'title' => array(
                        'plugin' => 'text',
                        'config' => array(
                        'title' => 'Заголовок',),
                        
                    ),
                    'date' => array(
                        'plugin' => 'text',
                        'config' => array(
                        'title' => 'Дата',),

                    ),
                    'tmp' => array(
                        'plugin' => 'text',
                        'config' => array(
                        'title' => 'TMP',),

                    ),
                    'text'  => array(
                        'plugin' => 'textarea',
                        'config' => array(
                        'title' => 'Текст',),
                        
                    ),
                    'annotation' => array(
                        'plugin' => 'textarea',
                        'config' => array(
                            'title' => 'Аннотация',
                        ),
                    ),
                )
        )
);